home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000137_icon-group-sender _Tue Jun 18 13:11:43 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
1KB
Received: by cheltenham.cs.arizona.edu; Tue, 18 Jun 1996 08:58:26 MST
Message-Id: <31C69CFF.6292@tees.ac.uk>
Date: Tue, 18 Jun 1996 13:11:43 +0100
From: Hamish Lawson <H.Lawson@tees.ac.uk>
Organization: University of Teesside
X-Mailer: Mozilla 3.0b4Gold (Win95; I)
Mime-Version: 1.0
To: icon-group@cs.arizona.edu
Subject: Re: Locking files
References: <9606140653.AA00140@canardo.unicaen.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
Jerzy Karczmarczuk wrote:
> there is a cheap way of locking something
> globally used for ages: the *creation* of a special "lock" file
> just before entering the critical section (if it is absent,
> otherwise sleep/wait), and the destruction after.
Is there not a small risk that in the time between some process finding
that the lock file doesn't exist and creating this file, another process
might also find that the lock file doesn't exist, thereby breaking the
exclusivity mechanism.
| Hamish Lawson, School of Computing and Mathematics,
| University of Teesside, Middlesbrough, Cleveland, UK, TS1 3BA
| Tel: +44 1642 212695 Fax: +44 1642 342604
| E-mail: H.Lawson@tees.ac.uk